set (gmedecoder_SOURCES
  plugin.cpp
  GmeDataStream.cpp
  GmeDecoder.cpp
  GmeIndexerSource.cpp
  gme/c140.c
  gme/dac_control.c
  gme/fm.c
  gme/fm2612.c
  gme/gme_custom_dprintf.c
  gme/k051649.c
  gme/k053260.c
  gme/k054539.c
  gme/okim6258.c
  gme/okim6295.c
  gme/pwm.c
  gme/qmix.c
  gme/rf5c68.c
  gme/s_deltat.c
  gme/s_logtbl.c
  gme/s_opl.c
  gme/s_opltbl.c
  gme/scd_pcm.c
  gme/segapcm.c
  gme/ym2151.c
  gme/ym2413.c
  gme/ymz280b.c
  gme/Ay_Apu.cpp
  gme/Ay_Core.cpp
  gme/Ay_Cpu.cpp
  gme/Ay_Emu.cpp
  gme/blargg_common.cpp
  gme/blargg_errors.cpp
  gme/Blip_Buffer.cpp
  gme/Bml_Parser.cpp
  gme/C140_Emu.cpp
  gme/Classic_Emu.cpp
  gme/Data_Reader.cpp
  gme/dbopl.cpp
  gme/Downsampler.cpp
  gme/Dual_Resampler.cpp
  gme/Effects_Buffer.cpp
  gme/Fir_Resampler.cpp
  gme/fmopl.cpp
  gme/Gb_Apu.cpp
  gme/Gb_Cpu.cpp
  gme/Gb_Oscs.cpp
  gme/Gbs_Core.cpp
  gme/Gbs_Cpu.cpp
  gme/Gbs_Emu.cpp
  gme/Gme_File.cpp
  gme/Gme_Loader.cpp
  gme/gme.cpp
  gme/Gym_Emu.cpp
  gme/Hes_Apu_Adpcm.cpp
  gme/Hes_Apu.cpp
  gme/Hes_Core.cpp
  gme/Hes_Cpu.cpp
  gme/Hes_Emu.cpp
  gme/K051649_Emu.cpp
  gme/K053260_Emu.cpp
  gme/K054539_Emu.cpp
  gme/Kss_Core.cpp
  gme/Kss_Cpu.cpp
  gme/Kss_Emu.cpp
  gme/Kss_Scc_Apu.cpp
  gme/M3u_Playlist.cpp
  gme/Multi_Buffer.cpp
  gme/Music_Emu.cpp
  gme/Nes_Apu.cpp
  gme/Nes_Cpu.cpp
  gme/Nes_Fds_Apu.cpp
  gme/Nes_Fme7_Apu.cpp
  gme/Nes_Namco_Apu.cpp
  gme/Nes_Oscs.cpp
  gme/Nes_Vrc6_Apu.cpp
  gme/Nes_Vrc7_Apu.cpp
  gme/Nsf_Core.cpp
  gme/Nsf_Cpu.cpp
  gme/Nsf_Emu.cpp
  gme/Nsf_Impl.cpp
  gme/Nsfe_Emu.cpp
  gme/Okim6258_Emu.cpp
  gme/Okim6295_Emu.cpp
  gme/Opl_Apu.cpp
  gme/Pwm_Emu.cpp
  gme/Qsound_Apu.cpp
  gme/Resampler.cpp
  gme/Rf5C164_Emu.cpp
  gme/Rf5C68_Emu.cpp
  gme/Rom_Data.cpp
  gme/Sap_Apu.cpp
  gme/Sap_Core.cpp
  gme/Sap_Cpu.cpp
  gme/Sap_Emu.cpp
  gme/SegaPcm_Emu.cpp
  gme/Sgc_Core.cpp
  gme/Sgc_Cpu.cpp
  gme/Sgc_Emu.cpp
  gme/Sgc_Impl.cpp
  gme/Sms_Apu.cpp
  gme/Sms_Fm_Apu.cpp
  gme/Spc_Emu.cpp
  gme/Spc_Filter.cpp
  gme/Spc_Sfm.cpp
  gme/Track_Filter.cpp
  gme/Upsampler.cpp
  gme/Vgm_Core.cpp
  gme/Vgm_Emu.cpp
  gme/Ym2151_Emu.cpp
  gme/Ym2203_Emu.cpp
  gme/Ym2413_Emu.cpp
  gme/Ym2608_Emu.cpp
  gme/Ym2610b_Emu.cpp
  gme/Ym2612_Emu.cpp
  gme/Ym3812_Emu.cpp
  gme/ymdeltat.cpp
  gme/Ymf262_Emu.cpp
  gme/Ymz280b_Emu.cpp
  gme/Z80_Cpu.cpp
  gme/higan/processor/spc700/spc700.cpp
  gme/higan/smp/memory.cpp
  gme/higan/smp/timing.cpp
  gme/higan/smp/smp.cpp
  gme/higan/dsp/dsp.cpp
  gme/higan/dsp/SPC_DSP.cpp
)

add_definitions(-DHAVE_STDINT_H)
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/gme")
add_library(gmedecoder SHARED ${gmedecoder_SOURCES})
target_link_libraries(gmedecoder ${musikcube_LINK_LIBS})
